<template>
  <div class="content">
    <!-- Error Page -->
    <div class="error">
      <div class="container-floud">
        <div class="col-xs-12 ground-color text-center">
          <div v-if="error.statusCode==404">
            <div class="container-error-404">
              <div class="clip"><div class="shadow"><span class="digit thirdDigit">4</span></div></div>
              <div class="clip"><div class="shadow"><span class="digit secondDigit">0</span></div></div>
              <div class="clip"><div class="shadow"><span class="digit firstDigit">4</span></div></div>
              <div class="msg">OH!<span class="triangle"></span></div>
            </div>
            <h2 class="h1">Sorry! Page not found</h2>
            <div class="frame">
              <div class="custom-btn btn-16" @click="$router.push({ path: '/', query: {} })">首页</div>
            </div>
          </div>
          <div v-else>
            <div class="container-error-404">
              <div class="clip"><div class="shadow"><span class="digit thirdDigit">5</span></div></div>
              <div class="clip"><div class="shadow"><span class="digit secondDigit">0</span></div></div>
              <div class="clip"><div class="shadow"><span class="digit firstDigit">0</span></div></div>
              <div class="msg">OH!<span class="triangle"></span></div>
            </div>
            <h2 class="h1">Sorry! Server Error</h2>
            <div class="frame">
              <div class="custom-btn btn-16" @click="$router.push({ path: '/', query: {} })">首页</div>
            </div>
          </div>
        </div>
      </div>
    </div>

  </div>
</template>

<script>

  export default {
    name: "error",
    components: {},
    props: ['error'],
    data() {
      return {}
    },
    created() {
    },
    mounted() {
    },
    methods: {},
    beforeDestroy() {
    },

  }
</script>

<style scoped>
  li{
    list-style: none;
  }
  button {
    margin: 20px;
  }
.content{
  margin: 0 auto;
  text-align: center;
}
  .frame {
    width: 90%;
    margin: 40px auto;
    text-align: center;
  }
  button {
    margin: 20px;
  }
  .custom-btn {
    width: 130px;
    height: 40px;
    color: #666666;
    border-radius: 5px;
    padding: 10px 25px;
    font-family: 'Lato', sans-serif;
    font-weight: 500;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
    box-shadow:inset 2px 2px 2px 0px rgba(255,255,255,.5),
    7px 7px 20px 0px rgba(0,0,0,.1),
    4px 4px 5px 0px rgba(0,0,0,.1);
    outline: none;
  }
.custom-btn:hover{
  color: #07b3f9 !important;
}
  /* 16 */
  .btn-16 {
    border: none;
    color: #000;
  }
  .btn-16:after {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    direction: rtl;
    z-index: -1;
    box-shadow:
      -7px -7px 20px 0px #fff9,
      -4px -4px 5px 0px #fff9,
      7px 7px 20px 0px #0002,
      4px 4px 5px 0px #0001;
    transition: all 0.3s ease-in-out;
  }
  .btn-16:hover {
    color: #000;
    transform: scale(1.02);
  }
  .btn-16:hover:after {
    left: auto;
    right: 0;
    width: 0;
  }
  .btn-16:active {
    top: 2px;
  }
/**/
  *
  {
    font-family: 'PT Sans Caption', sans-serif, 'arial', 'Times New Roman';
  }
  /* Error Page */
  .error .clip .shadow
  {
    height: 180px;  /*Contrall*/
  }
  .error .clip:nth-of-type(2) .shadow
  {
    width: 130px;   /*Contrall play with javascript*/
  }
  .error .clip:nth-of-type(1) .shadow, .error .clip:nth-of-type(3) .shadow
  {
    width: 250px; /*Contrall*/
  }
  .error .digit
  {
    width: 150px;   /*Contrall*/
    height: 150px;  /*Contrall*/
    line-height: 150px; /*Contrall*/
    font-size: 120px;
    font-weight: bold;
  }
  .error h2   /*Contrall*/
  {
    font-size: 32px;
  }
  .error .msg /*Contrall*/
  {
    top: -190px;
    left: 3%;
    width: 80px;
    height: 80px;
    line-height: 80px;
    font-size: 32px;
  }
  .error span.triangle    /*Contrall*/
  {
    top: 70%;
    right: 0%;
    border-left: 20px solid #535353;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
  }


  .error .container-error-404
  {
    /*margin-top: 10%;*/
    /*position: relative;*/
    /*height: 100%;*/
    /*padding-top: 40px;*/
  }
  .error .container-error-404 .clip
  {
    display: inline-block;
    transform: skew(-45deg);
  }
  .error .clip .shadow
  {

    overflow: hidden;
  }
  .error .clip:nth-of-type(2) .shadow
  {
    overflow: hidden;
    position: relative;
    box-shadow: inset 20px 0px 20px -15px rgba(150, 150, 150,0.8), 20px 0px 20px -15px rgba(150, 150, 150,0.8);
  }

  .error .clip:nth-of-type(3) .shadow:after, .error .clip:nth-of-type(1) .shadow:after
  {
    content: "";
    position: absolute;
    right: -8px;
    bottom: 0px;
    z-index: 9999;
    height: 100%;
    width: 10px;
    background: linear-gradient(90deg, transparent, rgba(173,173,173, 0.8), transparent);
    border-radius: 50%;
  }
  .error .clip:nth-of-type(3) .shadow:after
  {
    left: -8px;
  }
  .error .digit
  {
    position: relative;
    top: 8%;
    color: white;
    background: #07B3F9;
    border-radius: 50%;
    display: inline-block;
    transform: skew(45deg);
  }
  .error .clip:nth-of-type(2) .digit
  {
    left: -10%;
  }
  .error .clip:nth-of-type(1) .digit
  {
    right: -20%;
  }.error .clip:nth-of-type(3) .digit
   {
     left: -20%;
   }
  .error h2
  {
    color: #A2A2A2;
    font-weight: bold;
    padding-bottom: 20px;
  }
  .error .msg
  {
    position: relative;
    z-index: 9999;
    display: block;
    background: #535353;
    color: #A2A2A2;
    border-radius: 50%;
    font-style: italic;
  }
  .error .triangle
  {
    position: absolute;
    z-index: 999;
    transform: rotate(45deg);
    content: "";
    width: 0;
    height: 0;
  }

  /* Error Page */
  @media(max-width: 767px)
  {
    /* Error Page */
    .error .clip .shadow
    {
      height: 100px;  /*Contrall*/
    }
    .error .clip:nth-of-type(2) .shadow
    {
      width: 80px;   /*Contrall play with javascript*/
    }
    .error .clip:nth-of-type(1) .shadow, .error .clip:nth-of-type(3) .shadow
    {
      width: 100px; /*Contrall*/
    }
    .error .digit
    {
      width: 80px;   /*Contrall*/
      height: 80px;  /*Contrall*/
      line-height: 80px; /*Contrall*/
      font-size: 52px;
    }
    .error h2   /*Contrall*/
    {
      font-size: 24px;
    }
    .error .msg /*Contrall*/
    {
      top: -110px;
      left: -3%;
      width: 40px;
      height: 40px;
      line-height: 40px;
      font-size: 18px;
    }
    .error span.triangle    /*Contrall*/
    {
      top: 70%;
      right: -3%;
      border-left: 10px solid #535353;
      border-top: 8px solid transparent;
      border-bottom: 8px solid transparent;
    }
    .error .container-error-404
    {
      height: 150px;
    }
    /* Error Page */
  }

  /*--------------------------------------------Framework --------------------------------*/

  .overlay { position: relative; z-index: 20; } /*done*/
  .ground-color { background: white; height: 100vh ;align-items: center;
    display: flex;
    justify-content: center}  /*done*/
  .item-bg-color { background: #EAEAEA } /*done*/

  /* Padding Section*/
  .padding-top { padding-top: 10px; } /*done*/
  .padding-bottom { padding-bottom: 10px; }   /*done*/
  .padding-vertical { padding-top: 10px; padding-bottom: 10px; }
  .padding-horizontal { padding-left: 10px; padding-right: 10px; }
  .padding-all { padding: 10px; }   /*done*/

  .no-padding-left { padding-left: 0px; }    /*done*/
  .no-padding-right { padding-right: 0px; }   /*done*/
  .no-vertical-padding { padding-top: 0px; padding-bottom: 0px; }
  .no-horizontal-padding { padding-left: 0px; padding-right: 0px; }
  .no-padding { padding: 0px; }   /*done*/
  /* Padding Section*/

  /* Margin section */
  .margin-top { margin-top: 10px; }   /*done*/
  .margin-bottom { margin-bottom: 10px; } /*done*/
  .margin-right { margin-right: 10px; } /*done*/
  .margin-left { margin-left: 10px; } /*done*/
  .margin-horizontal { margin-left: 10px; margin-right: 10px; } /*done*/
  .margin-vertical { margin-top: 10px; margin-bottom: 10px; } /*done*/
  .margin-all { margin: 10px; }   /*done*/
  .no-margin { margin: 0px; }   /*done*/

  .no-vertical-margin { margin-top: 0px; margin-bottom: 0px; }
  .no-horizontal-margin { margin-left: 0px; margin-right: 0px; }

  .inside-col-shrink { margin: 0px 20px; }    /*done - For the inside sections that has also Title section*/
  /* Margin section */

  hr
  { margin: 0px; padding: 0px; border-top: 1px dashed #999; }
  /*--------------------------------------------FrameWork------------------------*/
</style>
